@echo off
for /l %%i in (1,1,10000000000) do (
echo %%i sleep
ping -n 60 -w 1000 127.0.0.1 > nul

if not exist "D:\~live.txt" (
  tasklist|findstr "python.exe">D:\~tmplist.txt
  for /f "tokens=2" %%a in (D:\~tmplist.txt) do @(
    echo %%i taskkill /f /pid %%a
    taskkill /f /pid %%a
  )
) else (
  del "D:\~live.txt"
)

)
